package com.oauth.facebook.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.oauth.components.client.rpc.exception.SessionExpiredException;
import com.oauth.facebook.client.beans.FacebookModel;
import com.oauth.facebook.client.beans.FacebookUser;
import com.oauth.facebook.client.exception.FacebookOAuthException;

@RemoteServiceRelativePath("../facebook/home.ajax")
public interface FacebookRemoteService extends RemoteService {

	public FacebookModel getHomeData() throws SessionExpiredException, FacebookOAuthException;

	public List<FacebookUser> getConnections() throws SessionExpiredException,
			FacebookOAuthException;

	public List<FacebookUser> getUpdates() throws SessionExpiredException, FacebookOAuthException;

	public boolean updateStatus(String pText) throws SessionExpiredException,
			FacebookOAuthException;
}
